package com.ebook.eboo.Result;

import java.util.List;

public class Result<T> {
    //响应码
    private int code;
    private List<T> list;

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }

    public Result(int code){
        this.code = code;
    }
    public Result(int code,List<T> list){
        this.code=code;
        this.list=list;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
